﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TimKen.DataEntity
{
    /// <summary>
    ///用户类型
    /// </summary>
    public class UserS
    {
        public virtual string UserName { get; set; }
        public virtual bool IsValid
        {
            get;
            set;
        }
        public UserType UserType { get; set; }
    }
    [Flags]
    public enum UserType
    {   
        SystemAdministrator = 0,
        Viewer = 1,//未登陆用户
        SelfRegistered = 2,//通过网站注册的用户
        FactoryBuyer = 4,//客户
        FactoryFinance=3,   //客户财务用户
        DataAdministrator=5
    }
}
